package Mediator;

import Component.*;
import Component.Button;
import Component.Component;
import Component.List;


public class ConcreteMediator extends Mediator{
    public Button getAddButton() {
        return addButton;
    }

    public void setAddButton(Button addButton) {
        this.addButton = addButton;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }

    public TextBox getUserNameTextBox() {
        return userNameTextBox;
    }

    public void setUserNameTextBox(TextBox userNameTextBox) {
        this.userNameTextBox = userNameTextBox;
    }

    public ComboBox getCb() {
        return cb;
    }

    public void setCb(ComboBox cb) {
        this.cb = cb;
    }

    public Button addButton;
    public List list;
    public TextBox userNameTextBox;
    public ComboBox cb;
    @Override
    public void componentChanged(Component c) {
        addButton.update();
        list.update();
        list.select();
        userNameTextBox.update();
        userNameTextBox.setText();
        cb.update();
        cb.select();
    }
}
